<?php session_start();

unset($_SESSION['login']);

session_unset();

session_destroy();
setcookie("PHPSESSID","",time()-3600,"/");
header ('Location: index.php');

?>